package org.aristotle.demo.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.aristotle.demo.model.entity.Favorite;
import org.aristotle.demo.model.vo.FavoriteVO;

public interface IFavoriteService extends IService<Favorite> {
    Page<FavoriteVO> queryPageList(Long userId, Long bookId, Integer current, Integer size);

    FavoriteVO getById(Long id);

    Boolean removeById(Long id);

    Boolean removeById(Long userId, Long bookId);
}
